CONFIG += plugin c++11
#deepin
linux-g++{
    #release version
    UNAME =$$system(uname -a)
    QMAKE_CFLAGS  += -fPIC
    QMAKE_CXXFLAGS    += -fPIC
    QMAKE_LFLAGS += -Wl,-z -Wl,defs
    contains(UNAME,[dD]eepin):message(This likes you are use Deepin){
        QMAKE_LFLAGS +=-m64 -Wall -D_GLIBCXX_USE_CXX11_ABI=0
        QMAKE_CFLAGS += -arch x86_64 -lpthread std=c++11 -stdlib=libc++ -DHAVE_CONFIG_H -D_THREAD_SAFE  -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -MT -MD -MP -MF

        #path  for deepin
        INCLUDEPATH += /usr/include/python2.7/
        BOOST_ROOT = /media/lyh/DATA/boost_1_69_0
        INCLUDEPATH += $$BOOST_ROOT
        INCLUDEPATH += /usr/local/ssl/include/
        DEFINES += BOOST_ALL_NO_LIB
    }else:message(This likes you are use linux){

        #QMAKE_LFLAGS +=-m64 -Wall -D_GLIBCXX_USE_CXX11_ABI=0
        #QMAKE_CFLAGS += -arch x86_64 -lpthread std=c++11 -stdlib=libc++ -DHAVE_CONFIG_H -D_THREAD_SAFE  -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -MT -MD -MP -MF
        INCLUDEPATH += /usr/include/python2.7/
        BOOST_ROOT = /media/lyh/DATA/boost_1_69_0
        INCLUDEPATH += $$BOOST_ROOT
        DEFINES += BOOST_ALL_NO_LIB
        #LIBS += /media/lyh/DATA/boost_1_69_0/stage/lib
        #LIBS += -L/media/lyh/DATA/boost_1_69_0/stage/lib -lboost_thread -lboost_system -lboost_filesystem  -lboost_serialization -lboost_python27 -lboost_date_time
        LIBS += -L/usr/lib -lpython2.7 -lrt -ldl -lpthread
        LIBS += -L/media/lyh/DATA/boost_1_69_0/stage/lib -lboost_system -lboost_filesystem -lboost_thread -lboost_serialization -lboost_python27 -lboost_date_time -lboost_chrono
        #QMAKE_LFLAGS += libboost_system.a libboost_filesystem.a libboost_thread.a libboost_serialization libboost_python27.a libboost_date_time.a
#        LIBS += $$BOOST_ROOT/stage/lib/libboost_system.a
#        LIBS += $$BOOST_ROOT/stage/lib/libboost_filesystem.a
#        LIBS += $$BOOST_ROOT/stage/lib/libboost_thread.a
#        LIBS += $$BOOST_ROOT/stage/lib/libboost_serialization.a
#        LIBS += $$BOOST_ROOT/stage/lib/libboost_python27.a
#        LIBS += $$BOOST_ROOT/stage/lib/libboost_date_time.a
    }
}


win32-g++{
    INCLUDEPATH += D:\boost_1_69_0
}

macx:message(This likes you are use Mac OSX){

    QMAKE_MAC_SDK = macosx10.11
    INCLUDEPATH += /usr/local/ssl/include
    INCLUDEPATH += /usr/include

    INCLUDEPATH += /Users/tony/boost_1_64_0

    LIBS += /Users/tony/boost_1_64_0/stage/lib/libboost_filesystem.a
    LIBS += /Users/tony/boost_1_64_0/stage/lib/libboost_system.a
    LIBS += /Users/tony/boost_1_64_0/stage/lib/libboost_thread.a
    #LIBS += /Users/tony/boost_1_64_0/stage/lib/libboost_log.a

    INCLUDEPATH += /usr/local/include

    QMAKE_LFLAGS += -lstdc++.6.0.9
}

win32-msvc{
    message($$PWD)
    INCLUDEPATH += D:\boost_1_69_0
    LIBS += -LD:\boost_1_69_0\lib32-msvc-14.1 -LD:\Anaconda3\libs
    INCLUDEPATH += D:\Anaconda3\include
}

CONFIG(debug, debug|release) {
        OBJECTS_DIR = Debug
        DESTDIR = ../build/v141/Debug
} else {
        OBJECTS_DIR = Release
        DESTDIR = ../build/v141/Release
}


